/********************************************************************************
 * Copyright (c) 2020 AVL List GmbH and others
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Apache Software License 2.0 which is available at
 * https://www.apache.org/licenses/LICENSE-2.0.
 * 
 * SPDX-License-Identifier: Apache-2.0
 ********************************************************************************/

#ifndef MCX_READER_SSP_PORTS_H
#define MCX_READER_SSP_PORTS_H

#include "reader/model/ports/PortsInput.h"

#include "reader/ssp/Util.h"


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef McxStatus (*fReadSSDPortSpecificData)(xmlNodePtr specificDataNode, PortInput * portInput);

PortsInput * SSDReadComponentPorts(xmlNodePtr connectorsNode,
                                   const char * type,
                                   const ObjectClass * portClass,
                                   const char * annotationType,
                                   fReadSSDPortSpecificData readPort,
                                   ObjectContainer * units);


#ifdef __cplusplus
} /* closing brace for extern "C" */
#endif /* __cplusplus */


#endif // !MCX_READER_SSP_PORTS_H